package cug.xxs.jpa.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.UUID;

@Entity
@Table(name = "tb_well")
@Data
public class Well implements Serializable {

    @Id
    private String id = UUID.randomUUID().toString();

    @ManyToOne
    private Model model;

    public Well() {
        super();
    }

}
